import { request } from '@/utils';
import { getRestBaseUrl } from '@/config';

// 新增
export const save = autoConfig =>
  request({
    url: `${getRestBaseUrl()}/iop/autoConfigService/save`,
    method: 'POST',
    data: { autoConfig },
    timeout: 3 * 60 * 1000,
  });

// 获取
export const getAutoConfig = () =>
  request({
    url: `${getRestBaseUrl()}/iop/autoConfigService/get`,
    method: 'POST',
    data: null,
    timeout: 3 * 60 * 1000,
  });
